-
-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add topological_sort()
to datanames(teal_data())
and also extend datanames()
with parent dataset when it is provided in join_keys
#319
Conversation
Merge branch 'main' of https://github.com/insightsengineering/teal.data # Conflicts: # tests/testthat/test-get_code.R
Signed-off-by: Marcin <[email protected]>
Update R/teal_data-datanames.R Signed-off-by: Marcin <[email protected]> add two tests for topological_sort
…om/insightsengineering/teal.data into topological_sort@669_insertUI@main
Co-authored-by: André Veríssimo <[email protected]> Signed-off-by: Marcin <[email protected]>
…om/insightsengineering/teal.data into topological_sort@669_insertUI@main
…in_keys as they might refer to datanames that do not exist in env
✅ All contributors have signed the CLA |
I have read the CLA Document and I hereby sign the CLA |
recheck |
I have read the CLA Document and I hereby sign the CLA |
Code Coverage Summary
Diff against main
Results for commit: 56fc828 Minimum allowed coverage is ♻️ This comment has been updated with latest results |
Unit Tests Summary 1 files 14 suites 2s ⏱️ Results for commit 56fc828. ♻️ This comment has been updated with latest results. |
Unit Test Performance DifferenceAdditional test case details
Results for commit 7b68a03 ♻️ This comment has been updated with latest results. |
@m7pr please add a NEWS entry and fix GHA checks |
Hey @gogonzo NEWS enhanced! that was a long one. |
👍 |
Part of insightsengineering/teal#1253
This PR introduced below changes
teal_data()
constructor does not putnames(join_keys)
in defaultdatanames(teal_data())
to maintain consistency with other features, where we do not allowdatanames()
to contain names of objects that do not exist in@env
datanames()
now sorts names topologically based on providedjoin_keys()
datanames()
andjoin_keys()
is overwritten the sort is applied toteal_data()@datanames
datanames()
fromjoin_keys
is fine - but it's not right now as we do not allowdatanames()
to contain names of objects that do not exists in@env
Will provide testing in this PR in teal as well https://github.com/insightsengineering/teal/pull/1280/files